/*
 * Copyright (c) 2022-2023 cetcclout Co., Ltd All rights reserved.
 * Sensor Adapter is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package com.cetccloud.cimp.common.util;

/**
 * @apiNote 常量信息
 * @author
 */
public class ConfigConstants {
    public static String HEADER_TOKEN = "X-Token";
    public static String TOKEN_SECRET = "AYBDXPCDVYOVSFOIISCUXPILHRMEEUZOIJOQLSEHSCCXMUZOIJOQLXZWLPYQFFPZQATJXXYGMDCLHSIIPYGWWOMGGCRAWFAOUHKK";

    /**
     * 5分钟 TODO 测试 600000 分钟
     */
    public static Long TOKEN_EXPIRED_MINUTE = 3000000000L;

    /**
     * 20分钟
     */
    public static Long MILLIS_MINUTE_TEN = 60*1000*10L;

    /**
     * 20分钟
     */
    public static Long MINUTE_TEN = 60*10L;

    /**
     * 后台登录用户token有效期为7天    3600*24*7;
     */
    public static int TOKEN_EXPIRE_SECONDS_FRONT= 3600*24*7;

    public static String RENEW_TOKEN_KEY ="Renew-X-Token";

    /**
     * 短信相关的配置
     **/
    public static String SMS_UID="222041";
    public static String SMS_PASSWORD="dky1234";
    public static String SMS_API_URL="https://sms3api.jvtd.cn/jtdsms/smsSend";
    /**
     * todo
     * 验证码的模板
     */
    public static String SMS_VERI_CODE_TEMPLATE=
    "【数字液压基础公共服务平台】您正在实名认证，验证码：%s，切勿将验证码泄露于他人，本条验证码有效期15分钟。";
    /**
     * 迅达云OSS配置
     */
    public static String OSS_ENDPOINT = "oss-cn-shanghai.cetccloud.com";
    public static String OSS_ACCESS_KEY = "94F5F5D4BADE4E5C95031E12BC16D523";
    public static String OSS_SECRET_KEY = "4e505ef7456ea1970961689cb104206f1f94d3ab5d116a4a02bec8e9ff08a017";
    public static String OSS_BUCKET_NAME = "dhmp-dev";
    public static String OSS_DOWNLOAD_PATH ="D:\\logs\\";
    /**
     * token 在redis中失效时间，单位:秒
     */
    public static final Integer INVALIDTIME = 30;

    /**
     * 生成密钥时所使用的密码
     */
    public static  String ENCRYPTOR_PASSWORD = "7gnNgz2gvXqVfu1F";
}
